<?php if (!defined('THINK_PATH')) exit();?><html lang="en" style="font-size: 100px;"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="icon" href="/favicon.ico"><title>h8pay</title><style>body {
        background: #f2f2f2;
      }
      @media screen and (min-width: 767px) {
        #app {
          width: 540px;
          margin: 0 auto;
          min-height: 100vh;
          box-sizing: border-box;
          border: 1px solid #999;
          /* overflow-y: hidden; */
        }
        .van-popup--top {
          width: 540px;
          margin: 0 auto;
        }
      }</style><link href="/css/chunk-02960128.d8e4678b.css" rel="prefetch"><link href="/css/chunk-03d19c5b.da3b4d7d.css" rel="prefetch"><link href="/css/chunk-12ee7e7e.be873f85.css" rel="prefetch"><link href="/css/chunk-16db521b.9f656bd8.css" rel="prefetch"><link href="/css/chunk-24229c8f.122b5dbc.css" rel="prefetch"><link href="/css/chunk-260b9ee0.d82954b0.css" rel="prefetch"><link href="/css/chunk-28327744.848026e7.css" rel="prefetch"><link href="/css/chunk-290088a4.e0e1dd88.css" rel="prefetch"><link href="/css/chunk-293e36ce.b6fe070f.css" rel="prefetch"><link href="/css/chunk-2a2c3438.3a05a371.css" rel="prefetch"><link href="/css/chunk-30530650.83ef8890.css" rel="prefetch"><link href="/css/chunk-31dfc6cc.49d996f2.css" rel="prefetch"><link href="/css/chunk-38d9c4e3.72558616.css" rel="prefetch"><link href="/css/chunk-3e56bb55.eded3812.css" rel="prefetch"><link href="/css/chunk-41206b58.2fe3c40b.css" rel="prefetch"><link href="/css/chunk-43155bdd.7506223a.css" rel="prefetch"><link href="/css/chunk-45fabb50.f6fb2ae2.css" rel="prefetch"><link href="/css/chunk-4dbebf52.c3310d55.css" rel="prefetch"><link href="/css/chunk-501ca340.bb40b437.css" rel="prefetch"><link href="/css/chunk-5753040b.49d996f2.css" rel="prefetch"><link href="/css/chunk-57d8499b.96222562.css" rel="prefetch"><link href="/css/chunk-58705b64.1442bd8d.css" rel="prefetch"><link href="/css/chunk-5ea3ec15.30d377cf.css" rel="prefetch"><link href="/css/chunk-5f1d8bc4.25eff320.css" rel="prefetch"><link href="/css/chunk-6731c9f2.5b48773c.css" rel="prefetch"><link href="/css/chunk-6a2440bf.15a728eb.css" rel="prefetch"><link href="/css/chunk-6de0daa4.5391e009.css" rel="prefetch"><link href="/css/chunk-731cdd2b.a9740232.css" rel="prefetch"><link href="/css/chunk-9fea3c5c.531c8116.css" rel="prefetch"><link href="/css/chunk-ae7bdc24.38e0efd9.css" rel="prefetch"><link href="/css/chunk-d08caeb6.b385e467.css" rel="prefetch"><link href="/css/chunk-dee820da.cfa2c36a.css" rel="prefetch"><link href="/css/chunk-e1f1707a.079dd8a4.css" rel="prefetch"><link href="/css/chunk-e911781e.d87f005c.css" rel="prefetch"><link href="/css/chunk-edede612.b1bc4af4.css" rel="prefetch"><link href="/css/chunk-fde07e7a.adc0509a.css" rel="prefetch"><link href="/css/chunk-02960128.e3c7e508.js" rel="prefetch"><link href="/css/chunk-03d19c5b.27befa25.js" rel="prefetch"><link href="/css/chunk-071b2878.ae2fec1b.js" rel="prefetch"><link href="/css/chunk-089a5e6c.989dbb83.js" rel="prefetch"><link href="/css/chunk-12ee7e7e.307cd1dc.js" rel="prefetch"><link href="/css/chunk-16db521b.7109f654.js" rel="prefetch"><link href="/css/chunk-170f8e40.69f62aae.js" rel="prefetch"><link href="/css/chunk-24229c8f.46929d5e.js" rel="prefetch"><link href="/css/chunk-260b9ee0.1a81655c.js" rel="prefetch"><link href="/css/chunk-28327744.4a11f784.js" rel="prefetch"><link href="/css/chunk-290088a4.e862636e.js" rel="prefetch"><link href="/css/chunk-293e36ce.1420743f.js" rel="prefetch"><link href="/css/chunk-2a2c3438.65ad57de.js" rel="prefetch"><link href="/css/chunk-2c41e510.2c195371.js" rel="prefetch"><link href="/css/chunk-2d0f0c02.2926760c.js" rel="prefetch"><link href="/css/chunk-2d209530.b5cf094b.js" rel="prefetch"><link href="/css/chunk-30530650.c54c1d46.js" rel="prefetch"><link href="/css/chunk-31dfc6cc.3f1001c2.js" rel="prefetch"><link href="/css/chunk-38d9c4e3.8ea2ebe4.js" rel="prefetch"><link href="/css/chunk-3e56bb55.719e241b.js" rel="prefetch"><link href="/css/chunk-41206b58.9330140e.js" rel="prefetch"><link href="/css/chunk-43155bdd.e84d6a1d.js" rel="prefetch"><link href="/css/chunk-45fabb50.f76bd21f.js" rel="prefetch"><link href="/css/chunk-4dbebf52.4e82767b.js" rel="prefetch"><link href="/css/chunk-501ca340.0957cc55.js" rel="prefetch"><link href="/css/chunk-5753040b.b03c4f33.js" rel="prefetch"><link href="/css/chunk-57d8499b.a72ea326.js" rel="prefetch"><link href="/css/chunk-58705b64.3dc71b78.js" rel="prefetch"><link href="/css/chunk-5ea3ec15.3c920ba3.js" rel="prefetch"><link href="/css/chunk-5f1d8bc4.231bcb0e.js" rel="prefetch"><link href="/css/chunk-6731c9f2.10291975.js" rel="prefetch"><link href="/css/chunk-6a2440bf.68deef23.js" rel="prefetch"><link href="/css/chunk-6de0daa4.ea9e4c1a.js" rel="prefetch"><link href="/css/chunk-731cdd2b.fd165dc0.js" rel="prefetch"><link href="/css/chunk-9fea3c5c.ffde5972.js" rel="prefetch"><link href="/css/chunk-ae7bdc24.95a06cff.js" rel="prefetch"><link href="/css/chunk-d08caeb6.4d2b8171.js" rel="prefetch"><link href="/css/chunk-dee820da.c9a3f55b.js" rel="prefetch"><link href="/css/chunk-e1f1707a.6a487118.js" rel="prefetch"><link href="/css/chunk-e2d3447a.df0751b6.js" rel="prefetch"><link href="/css/chunk-e911781e.429fdb74.js" rel="prefetch"><link href="/css/chunk-edede612.c01c3641.js" rel="prefetch"><link href="/css/chunk-fde07e7a.d481bd8c.js" rel="prefetch"><link href="/css/app.2150f8cc.css" rel="preload" as="style"><link href="/css/chunk-vendors.e9f6096e.css" rel="preload" as="style"><link href="/css/app.7b6aaa54.js" rel="preload" as="script"><link href="/css/chunk-vendors.9dc788ca.js" rel="preload" as="script"><link href="/css/chunk-vendors.e9f6096e.css" rel="stylesheet"><link href="/css/app.2150f8cc.css" rel="stylesheet"><link rel="stylesheet" type="text/css" href="/css/chunk-43155bdd.7506223a.css"><script charset="utf-8" src="/css/chunk-43155bdd.e84d6a1d.js"></script><link rel="stylesheet" type="text/css" href="/css/chunk-fde07e7a.adc0509a.css"><script charset="utf-8" src="/css/chunk-fde07e7a.d481bd8c.js"></script><link rel="stylesheet" type="text/css" href="/css/chunk-57d8499b.96222562.css"><script charset="utf-8" src="/css/chunk-57d8499b.a72ea326.js"></script><script charset="utf-8" src="/css/chunk-2d0f0c02.2926760c.js"></script><link rel="stylesheet" type="text/css" href="/css/chunk-38d9c4e3.72558616.css"><script charset="utf-8" src="/css/chunk-38d9c4e3.8ea2ebe4.js"></script><link rel="stylesheet" type="text/css" href="/css/chunk-24229c8f.122b5dbc.css"><script charset="utf-8" src="/css/chunk-24229c8f.46929d5e.js"></script><script charset="utf-8" src="/css/chunk-2c41e510.2c195371.js"></script><link rel="stylesheet" type="text/css" href="/css/chunk-9fea3c5c.531c8116.css"><script charset="utf-8" src="/css/chunk-9fea3c5c.ffde5972.js"></script><link rel="stylesheet" type="text/css" href="/css/chunk-ae7bdc24.38e0efd9.css"><script charset="utf-8" src="/css/chunk-ae7bdc24.95a06cff.js"></script><link rel="stylesheet" type="text/css" href="/css/chunk-e1f1707a.079dd8a4.css"><script charset="utf-8" src="/css/chunk-e1f1707a.6a487118.js"></script><script>
if(('standalone' in window.navigator)&&window.navigator.standalone){
var noddy,remotes=false;
document.addEventListener('click',function(event){
noddy=event.target;
while(noddy.nodeName!=='A'&&noddy.nodeName!=='HTML') noddy=noddy.parentNode;
if('href' in noddy&&noddy.href.indexOf('http')!==-1&&(noddy.href.indexOf(document.location.host)!==-1||remotes)){
event.preventDefault();
document.location.href=noddy.href;
}
},false);
}
</script></head><body class="">

<div id="app"><div data-v-7d5a3782="" class="pwd-reset"><div data-v-7d5a3782="" class="MB10 van-nav-bar van-hairline--bottom" style="z-index: 1;">
  <div data-v-7d5a3782="" class="van-nav-bar__left" onClick="javascript :history.back(-1);"><i data-v-7d5a3782="" class="van-icon van-icon-arrow-left van-nav-bar__arrow"><!----></i>
    <span data-v-7d5a3782="" class="van-nav-bar__text">返回</span></div><form class="mui-input-group form"  name="AddUser" action="<?php echo U('User/set_password');?>">
  <div data-v-7d5a3782="" class="van-nav-bar__title van-ellipsis">密码重置</div><div data-v-7d5a3782="" class="van-nav-bar__right" style="bottom: 10px;">
  <span data-v-7d5a3782="" class="van-nav-bar__text" id="submit"  onclick="setps()">确认重置</span></div></div><div data-v-7d5a3782="" class="pwd-info">
  <div data-v-7d5a3782=""><div data-v-7d5a3782="" class="pwd-item pwd-account flexh flex-between"><span data-v-7d5a3782="" class="item-title">账号：</span>
    <div data-v-7d5a3782="" style="width: 100%;"><input  value="<?php echo ($info["account"]); ?>" name="moblie" class="van-field__control" readonly></div></div><div data-v-7d5a3782="" class="pwd-item flexh flex-between pwd"><span data-v-7d5a3782="" class="item-title">原密码：</span><div data-v-7d5a3782="" class="van-cell van-field"><div class="van-cell__value van-cell__value--alone"><div class="van-field__body"><input type="password"   name="y_password" placeholder="请输入原密码" class="van-field__control"></div></div></div></div><div data-v-7d5a3782="" class="pwd-item flexh flex-between pwd"><span data-v-7d5a3782="" class="item-title">新密码：</span><div data-v-7d5a3782="" class="van-cell van-field"><div class="van-cell__value van-cell__value--alone"><div class="van-field__body"><input type="password" name="password" placeholder="请输入新密码" class="van-field__control"></div></div></div></div><div data-v-7d5a3782="" class="pwd-item flexh flex-between pwd"><span data-v-7d5a3782="" class="item-title">确认密码：</span><div data-v-7d5a3782="" class="van-cell van-field"><div class="van-cell__value van-cell__value--alone"><div class="van-field__body"><input type="password"   name="c_password" placeholder="请再次填写确认" class="van-field__control"></div></div></div></div></div></div></form></div></div>
  <script type="text/javascript" src="/Public/home/common/js/jquery-1.9.1.min.js" ></script>
 <script type="text/javascript" src="/Public/home/common/layer/layer.js" ></script>
 <script type="text/javascript">

    function setps(){
        var thisform=document.forms['AddUser'];
		var   moblie=thisform.moblie.value;
        var   password=thisform.password.value;       
        var   c_password=thisform.c_password.value;

		if(password=='' || password==null){
            layer.msg('请输入密码');
            return false;
        }
		if(c_password=='' || c_password==null){
            layer.msg('请再次输入密码');
            return false;
        }
		if(password != c_password){
            layer.msg('两次密码不一致');
            return false;
        }
		
        var post_url = $("form[name='AddUser']").attr('action');
        var post_data= $("form[name='AddUser']").serialize();
		$("#submit").attr('disabled',true)
        $.ajax({
            type: "POST",
            url: post_url,
            data:post_data,
            dataType: "json",
            success: function(data){
                if(data.status==1){
                    layer.msg(data.msg);  //,data.url);
					setTimeout(function (args) {
						window.location.href = "<?php echo U('User/index');?>";
					}, 3000); 
                }else{
                    layer.msg(data.msg);
                }
            }
        });
    }

</script>	
 </body></html>